import React, { Component } from 'react'
import {Button, Row, Col} from 'antd'
import './not-found.scss'

export default class NotFound extends Component {
    render() {
        return (
           <Row className='not-found'>
               <Col span={12} className='left'></Col>
               <Col span={12} className='right'>
                   <h1>404</h1>
                   <h2>抱歉，您访问的页面不存在</h2>
                    <div>
                        <Button type='primary' onClick={()=>this.props.history.replace('/index')}>
                            回到首页
                        </Button>
                    </div>
               </Col>
           </Row>
        )
    }
}
